package com.ruoyi.miaomiao.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户地址对象 f_address
 * 
 * @author ruoyi
 * @date 2022-07-29
 */
@ApiModel(value = "地址对象", description = "地址对象的属性描述")
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址id */
    @ApiModelProperty(value = "地址id", name = "addressId", example = "2000003")
    private Long addressId;

    /** 地址所属用户id */
    @ApiModelProperty(value = "地址所属用户id", name = "userId", example = "100000001")
    @Excel(name = "地址所属用户id")
    private Long userId;

    /** 地址详细信息 */
    @ApiModelProperty(value = "地址详细信息", name = "address", example = "池州联通")
    @Excel(name = "地址详细信息")
    private String address;

    /** 地址所属用户手机号 */
    @ApiModelProperty(value = "地址所属用户手机号", name = "userPhonenumber", example = "19966665555")
    @Excel(name = "地址所属用户手机号")
    private String userPhonenumber;

    /** 地址所属用户姓名 */
    @ApiModelProperty(value = "地址所属用户姓名", name = "userName", example = "妙脆角二号用户")
    @Excel(name = "地址所属用户姓名")
    private String userName;

    /** 地址的状态（1：正常，0：停用） */
    @ApiModelProperty(value = "地址的状态", name = "addressStatus", example = "1：正常，0：停用")
    @Excel(name = "地址的状态", readConverterExp = "1=：正常，0：停用")
    private String addressStatus;

    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setUserPhonenumber(String userPhonenumber) 
    {
        this.userPhonenumber = userPhonenumber;
    }

    public String getUserPhonenumber() 
    {
        return userPhonenumber;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAddressStatus(String addressStatus) 
    {
        this.addressStatus = addressStatus;
    }

    public String getAddressStatus() 
    {
        return addressStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("userId", getUserId())
            .append("address", getAddress())
            .append("userPhonenumber", getUserPhonenumber())
            .append("userName", getUserName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("addressStatus", getAddressStatus())
            .toString();
    }
}
